package com.test.rxjavademo;

import java.util.ArrayList;
import java.util.List;

class StudyModel {

    static List<Student> students;

    public static void init(){
        students = new ArrayList<>();
        for(int i=0;i<10;i++){
            Student student = new Student();
            List<Student.Course> courses = new ArrayList<>();
            for(int j=0;j<4;j++){
                Student.Course course = new Student.Course();
                course.setCname("Course:" + j);
                courses.add(course);
            }

            student.setName("Student:" +i);
            student.setCourses(courses);
            students.add(student);
        }
    }

    public static List<Student> getStudents() {
        init();

        return students;
    }
}
